<?php
if (isset($_GET['id'])){
    $sql = mysql_query("select judul from berita where id_berita='$_GET[id]'");
    $j   = mysql_fetch_array($sql);
    if ($j) {
        echo "$j[judul]";
    } else
        echo "sman1pramb-yog.sch.id. - website resmi sma n 1 prambanan yogyakarta";
}
else{
        echo "sman1pramb-yog.sch.id. - website resmi sma n 1 prambanan yogyakarta";
}
?>
